package com.ibeeking.found.msg.service.common.constants;

/**
 * @ClassName RedisKeyConstant
 * @Description redisKey
 * @Author ibeeking
 * @Date 2020-06-29 14:54
 **/
public class RedisKeyConstant {

    /**
     * 模块
     */
    public static final String MODULE = "MP:";

    /**
     * 30天
     */
    public static final long MONTH = 10125 << 8L;
    /**
     * 1天
     */
    public static final long DAY = 675 << 7L;
    /**
     * 半天
     */
    public static final long HALF_DAY = 675 << 6L;
    /**
     * 1小时
     */
    public static final long HOUR = 225 << 4L;

    /**
     * 一秒
     */
    public static final long SECOND = 1000L;

    /**
     * 公众号
     */
    public static final String MP_INFO = "MP_INFO:";
    public static final String MP_INFO_O_ID = "MP_INFO_O_ID:";

    /**
     * 素材
     */
    public static final String MP_SOURCE = MODULE + "MP_SOURCE:";

    /**
     * 公众号根据openId群发上限数量
     */
    public static final int MP_BATCH = 10000;

    /**
     * 粉丝
     */
    public static final String MP_FANS = "MP_FANS:";

    /**
     * 群发消息 每日限量
     */
    public static final String MP_MESSAGE_SEND_COUNT = "SEND_COUNT_:";

    public static final String WX_OPEN_CONFIG_KEY = "wx:open:config:";

    public static final String WX_OPEN_AUTH_KEY = "wx:open:auth:";

    public static final String WX_CP_CONFIG_KEY = "wx:cp:config:";

    public static final String WX_CP_AUTH_KEY = "wx:cp:auth:";
    /**
     * 公众号关键字自动回复
     */
    public static final String MP_KEY_SEND = "MP_KEY_SEND:";

    public static final String MP_SYNC = MODULE + "MP_SYNC:";

    /**
     * 消息场景类型
     */
    public static final String MSG_TYPE = "MSG_TYPE:";

    /**
     * 消息秘钥配置
     */
    public static final String MSG_CONFIG = "MSG_CONFIG:";
    /**
     * 消息签名
     */
    public static final String MSG_SIGN = "MSG_SIGN:";
    /**
     * 消息模板
     */
    public static final String MSG_TEMPLATE = "MSG_TEMPLATE:";
    /**
     * 消息关系
     */
    public static final String MSG_RELATION = "MSG_RELATION:";


    /**
     * 身份校验验证码
     */
    public static final String SMS_CHECK = "SMS_CHECK:";


    public static final String EMAIL_SENDER_KEY_PREFIX = "ibeeking.sender.";

    /**
     * 邮件服务器配置
     */
    public static final String EMAIL_CONFIG = "EMAIL_CONFIG:";

}
